Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: permit follower log to revert to earlier state with --features loosen-follower-log-revert #903

Merged
merged 1 commit into from
Jul 20, 2023

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Jul 20, 2023

Changelog

Feature: permit follower log to revert to earlier state with --features loosen-follower-log-revert

Add a new feature flag loosen-follower-log-revert, to permit the
follower's log to roll back to an earlier state without causing the
leader to panic.

Although log state reversion is typically seen as a bug, enabling it can
be useful for testing or in some special scenarios.
For instance, in an even number nodes cluster, erasing a node's data
and then rebooting it(log reverts to empty) will not result in data
loss.


This change is Reviewable

…res loosen-follower-log-revert`

Add a new feature flag `loosen-follower-log-revert`, to permit the
follower's log to roll back to an earlier state without causing the
leader to panic.

Although log state reversion is typically seen as a bug, enabling it can
be useful for testing or in some special scenarios.
For instance, in an even number nodes cluster, erasing a node's data
and then rebooting it(log reverts to empty) will not result in data
loss.

- Related issue: databendlabs#898
@drmingdrmer drmingdrmer merged commit 5b96cd4 into databendlabs:main Jul 20, 2023
25 checks passed
@drmingdrmer drmingdrmer deleted the 44-loosen-check branch July 20, 2023 05:27
@drmingdrmer drmingdrmer mentioned this pull request Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant